package com.ding.demo01;

/**
 * @author ding
 * @date 2021/7/17 13:11
 */


public class Test1 {
    public static void main(String[] args) {

        //获取cpu的核数
        //cpu密集型,IO密集型

        int i = Runtime.getRuntime().availableProcessors();
        System.out.println("i = " + i);


    }
}
